<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/8/24
 * Time: 19:47
 */

namespace app\admin\controller;
use app\common\model\WebsiteModel;

class Website extends Base
{
    /**
     * 网站配置
    */
    public function index()
    {
        $model_Website = new WebsiteModel();

        if(!empty($_POST['name'])) {
            $param = input("param.");
            $model_Website->edit($param);
        }

        $website = $model_Website->find(1);
        $this->assign('website', $website);
        return $this->fetch();
    }



}